package com.hd.pzhwlxt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
@create: 2022-09-22 8:59
@author: 怀念天空
@Description: 
*/

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "electromechanical_equipment")
public class ElectromecEquipment {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 型号
     */
    @TableField(value = "specification")
    private String specification;

    /**
     * 名字
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 购入价格
     */
    @TableField(value = "purchased_price")
    private String purchasedPrice;

    /**
     * 购入时间
     */
    @TableField(value = "purchased_date")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date purchasedDate;

    /**
     * 生产厂家
     */
    @TableField(value = "manufacturer")
    private String manufacturer;

    /**
     * 归属单位（部门）
     */
    @TableField(value = "belonged_company")
    private Integer belongedCompany;

    /**
     * 供货单位（公司）
     */
    @TableField(value = "supply_unit")
    private String supplyUnit;
}